namespace UniversalAdmin.Application.DTOs;

public class OperationLogDto
{
    public Guid Id { get; set; }
    public Guid UserId { get; set; }
    public string UserName { get; set; } = string.Empty;
    public string Operation { get; set; } = string.Empty;
    public string? Description { get; set; }
    public string? IpAddress { get; set; }
    public string? UserAgent { get; set; }
    public DateTime CreatedAt { get; set; }
}

public class CreateOperationLogDto
{
    public Guid UserId { get; set; }
    public string UserName { get; set; } = string.Empty;
    public string Operation { get; set; } = string.Empty;
    public string? Description { get; set; }
    public string? IpAddress { get; set; }
    public string? UserAgent { get; set; }
}

public class LogQueryDto
{
    public int Page { get; set; } = 1;
    public int PageSize { get; set; } = 10;
    public string? UserId { get; set; }
    public string? Operation { get; set; }
    public DateTime? StartDate { get; set; }
    public DateTime? EndDate { get; set; }
}